<form class="form-horizontal col-xs-10 col-xs-offset-1" onSubmit="false">
	<div class="form-group">
		<h4 class="form-signin-heading  ">
			<span class="glyphicon glyphicon-user"></span>
			系统登陆
		</h4>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">用户名</label>
		<div class="col-sm-10">
			<input autofocus="autofocus" ng-model="ctrl.username" name="username" type="text" class="form-control" validate="" placeholder="用户名"
				required="" autofocus="">
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">密码</label>
		<div class="col-sm-10">
			<input ng-model="ctrl.password" name="password" type="password" class="form-control" placeholder="密码" required="">
		</div>
	</div>
	<div class="form-group text-success" ng-show="ctrl.message">{{ctrl.message}}</div>
	<div class="form-group error" ng-show="ctrl.error">{{ctrl.error}}</div>
	<div class="form-group">
		<div class="col-sm-6">
			<a ng-click="ctrl.username='';ctrl.password=''" class="hidden-xs col-sm-6 btn btn-info btn-block glyphicon glyphicon-remove"> 重置</a>
		</div>
		<div class="col-sm-6">
			<button ng-disabled="ctrl.onlogin" ng-click="ctrl.login(ctrl.username,ctrl.password)" class="col-sm-6 btn btn-success btn-block glyphicon glyphicon-ok">登陆</button>
		</div>
	</div>
</form>
